#include "filelog.h"

char buf[1024*1024];
char bufpid[128]={0};
int pid;

#define LOGE(...) \
	do { \
		pid =(int)getpid(); \
		sprintf(bufpid, "[PID_%d] :", pid);\
		memcpy(buf, bufpid, strlen(bufpid)); \
		sprintf(buf+strlen(bufpid), __VA_ARGS__); \
		sprintf(buf+strlen(buf),"\n");\
		AddStringToFile(buf); \	
	}while(0);


int main()
{
	int i = 1;
	char c[] = "...";
	
	LOGE("add new log %d, %s", i, c);
	

	return 0;
}
